]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Fix strut heuristics for multi-monitor
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 23 Dec 2012 05:47:04 +0000 (00:47 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 24 Dec 2012 02:17:40 +0000 (21:17 -0500)
Spotted while going through the code.

https://bugzilla.gnome.org/show_bug.cgi?id=690666

js/ui/layout.js

index ae828a008fcb3024279c24855daa4c08c373f1f2..9e2dee966ad298bb71e173ce3fc702a5596c17b4 100644 (file)
@@ -1092,7 +1092,7 @@ const Chrome = new Lang.Class({
             } else if (y1 <= primary.y && y2 >= primary.y + primary.height) {
                 if (x1 <= 0)
                     side = Meta.Side.LEFT;
-                else if (x2 >= global.screen_width)
+                else if (x2 >= primary.x + primary.width)
                     side = Meta.Side.RIGHT;
                 else
                     continue;